#!/usr/bin/env ruby
require 'rubygems'
require 'net-ldap'

#create a new instance of the class Net::LDAP and set it's various options
ldap = Net::LDAP.new (:host => ldap.cat.pdx.edu, :port => 389
ldap.host = ldap.cat.pdx.edu
ldap.port = 389
ldap.auth "ou=Netgroup,dc=catnip"

ldap.open do |ldap|
